import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './utils/vant-ui'
import 'amfe-flexible'
import instance from '@/utils/request'
import '@/styles/index.scss'
import { getRelativeTime } from '@/utils/date-time'
// import { formatTime } from '@/utils/date-time'
// console.log(formatTime())
Vue.prototype.instance = instance

Vue.config.productionTip = false
// 过滤器
Vue.filter('relativeTime', getRelativeTime)
// 创建事件中心
Vue.prototype.$bus = new Vue()
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
